import { reactive, ref } from "vue"
export function useMathsState(){
	const useCommonState = reactive({
		rangeValue: [0, 10], // 开始值，结束值
		// 开始值
		startValue: 0,
		// 结束值
		endValue: 10,
		// 算式数量 
		topicNumber: 0,
		// 列表
		topicList: [],
		// current
		current: null,
		// current: { type: 1, label: '加法', addition: true },
		// mode
		mode: null,
		// mode: { type: 2, label: "填空", blanks: true },
		// 整10、整5
		resultValue: 0
	})
	return {
		useCommonState
	}
}